/*
 * Copyright (c) 2018.
 * This file was written by Fancyears·Milos·Malvis @connor. Any question/bug you can't post to 1243093366@qq.com.
 * ALL RIGHTS RESERVED.
 */
package org.fancyears.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.fancyears.entity.User;
import org.fancyears.sql.IBaseSQLUtil;
//import org.springframework.stereotype.Repository;

/**
 * @author: Fancyears·Milos·Malvis
 * @CreateDate: 2018年12月6日 下午5:13:09
 * @Description:
 */

public interface UserDao extends IBaseSQLUtil<User> {
	User selectById(User user) throws Exception;

	User selectByObj(Object user) throws Exception;

	List<User> selectList(User user) throws Exception;

	List<User> selectListX(@Param("user") User user, RowBounds rowBounds) throws Exception;

	List<User> selectListX(int start, int size) throws Exception;

	int insert(User user) throws Exception;

	int insertByObj(Object user) throws Exception;

	List<User> selectByMap(@Param("params") Map<String, Object> params) throws Exception;

}
